﻿using RockBus.Logging.Interfaces;
using System;
using System.Reflection;

namespace RockBus.Hosting
{
    public class StaticWebServiceHost : RockBusWebServiceHost
    {
        public StaticWebServiceHost(ILogger logger, Type serviceType, params Uri[] baseAddresses)
            : base(logger, serviceType, baseAddresses)
        {
            this.Logger.LogInfo(MethodBase.GetCurrentMethod(), "Creating StaticWebServiceHost for type: {0}", serviceType.Name);
        }
    }

    public class StaticWebServiceHost<TServiceType> : RockBusWebServiceHost
    {
        public StaticWebServiceHost(ILogger logger, params Uri[] baseAddresses)
            : base(logger, typeof(TServiceType), baseAddresses)
        {
            this.Logger.LogInfo(MethodBase.GetCurrentMethod(), "Creating StaticWebServiceHost for type: {0}", typeof(TServiceType).Name);
        }
    }
}